package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 借入单后处于待入库状态，归还状态为未归还状态，等进行进货或者归还后，则规范状态为已归还。
 * </p>
 *
 * @author chenj
 * @since 2020-03-24
 */
public class BorrowIn extends Model<BorrowIn> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 入库仓库id
     */
    private String houseId;

    /**
     * 1未归还 2部分归还 3归还
     */
    private Integer inStatus;

    /**
     * 1直接入库 2入库单入库
     */
    private Integer status;

    /**
     * 是否关闭
     */
    private Boolean close;

    /**
     * 供应商id
     */
    private String providerId;

    /**
     * 单据编号
     */
    private String no;

    /**
     * 经办人id
     */
    private String userId;

    /**
     * 业务日期
     */
    private Date date;

    /**
     * 预计归还日期
     */
    private Date backDate;

    /**
     * 制单人
     */
    private String makeUserId;

    private Date makeTime;

    /**
     * 备注
     */
    private String remark;

    private Date time;

    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }
    public Integer getInStatus() {
        return inStatus;
    }

    public void setInStatus(Integer inStatus) {
        this.inStatus = inStatus;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Boolean getClose() {
        return close;
    }

    public void setClose(Boolean close) {
        this.close = close;
    }
    public String getProviderId() {
        return providerId;
    }

    public void setProviderId(String providerId) {
        this.providerId = providerId;
    }
    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
    public Date getBackDate() {
        return backDate;
    }

    public void setBackDate(Date backDate) {
        this.backDate = backDate;
    }
    public String getMakeUserId() {
        return makeUserId;
    }

    public void setMakeUserId(String makeUserId) {
        this.makeUserId = makeUserId;
    }
    public Date getMakeTime() {
        return makeTime;
    }

    public void setMakeTime(Date makeTime) {
        this.makeTime = makeTime;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BorrowIn{" +
            "id=" + id +
            ", houseId=" + houseId +
            ", inStatus=" + inStatus +
            ", status=" + status +
            ", close=" + close +
            ", providerId=" + providerId +
            ", no=" + no +
            ", userId=" + userId +
            ", date=" + date +
            ", backDate=" + backDate +
            ", makeUserId=" + makeUserId +
            ", makeTime=" + makeTime +
            ", remark=" + remark +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
